import { DataSource } from 'typeorm'
import { AvatarEntity } from '../entities/avatar.mysql.entity'

export const AvatarProviders = [
  {
    inject: ["MYSQL_DATA_SOURCE"],
    provide: "AVATAR_REPOSITORY",
    useFactory: (dataSource: DataSource) => dataSource.getRepository(AvatarEntity)
  }
]